#include "model_transaction.h"

Model_Transaction::Model_Transaction(int id, QString desc, QString starttime, QString endtime, QString stat)
{
    m_id = id;
    m_desc = desc;
    m_starttime = starttime;
    m_endtime = endtime;
    m_stat = stat;
}

QString Model_Transaction::desc() const
{
    return m_desc;
}

QString Model_Transaction::starttime() const
{
    return m_starttime;
}

QString Model_Transaction::endtime() const
{
    return m_endtime;
}

QString Model_Transaction::stat() const
{
    return m_stat;
}

int Model_Transaction::id() const
{
    return m_id;
}

/*void Model_Transaction::setType(const QString &newtype)
{
    if(m_type != newtype)
    {
        m_type = newtype;
    }
}

void Model_Transaction::setDesc(const QString &newdesc)
{
    if(m_desc != newdesc)
    {
        m_desc = newdesc;
    }
}
void Model_Transaction::setStartTime(const QString &newstarttime)
{
    if(m_starttime != newstarttime)
    {
        m_starttime = newstarttime;
    }
}
void Model_Transaction::setEndTime(const QString &newendtime)
{
    if(m_endtime != newendtime)
    {
        m_endtime = newendtime;
    }
}
void Model_Transaction::setStat(const QString &newstat)
{
    if(m_stat != newstat)
    {
        m_stat = newstat;
    }
}*/
